package com.kedou.app;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;

/**
 * 付款信息 界面
 * 
 * @author zhouchao
 * 
 */
public class PayInformationActivity extends Activity implements OnClickListener {
	/**
	 * 左侧 返回按钮
	 */
	private Button mBtnBack;
	/**
	 * 中间 Title
	 */
	private TextView mTvTitle;
	/**
	 * 右侧 设置
	 */
	private ImageView mImgSetting;
	/**
	 * 项目名称
	 */
	private TextView mTvProjectName;
	/**
	 * 众筹订单
	 */
	private TextView mTvProjectOrder;
	/**
	 * 收款银行
	 */
	private TextView mTvReceivingBank;
	/**
	 * 收款账号
	 */
	private TextView mTvReceivingAccount;
	/**
	 * 收款人
	 */
	private TextView mTvPayee;
	/**
	 * 金额
	 */
	private TextView mTvMoney;

	/**
	 * 付款银行
	 */
	private TextView mTvPaymentBank;
	/**
	 * 付款账号
	 */
	private TextView mTvPaymentAccount;
	/**
	 * 付款人
	 */
	private TextView mTvPayer;
	/**
	 * 去网银支付
	 */
	private Button mBtnGotoPay;

	/**
	 * 保存付款信息
	 */
	private Button mBtnSaveInformation;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_payinformation);
		initView();
		setListener();
	}

	/**
	 * 初始化View
	 */
	private void initView() {
		mBtnBack = (Button) findViewById(R.id.btn_back);
		mBtnBack.setVisibility(View.VISIBLE);
		mTvTitle = (TextView) findViewById(R.id.title);
		mTvTitle.setText(R.string.title_pay_information);
		mImgSetting = (ImageView) findViewById(R.id.img_setting);
		mImgSetting.setVisibility(View.VISIBLE);
		mTvProjectName = (TextView) findViewById(R.id.tv_project_name);
		mTvProjectOrder = (TextView) findViewById(R.id.tv_project_order);
		mTvReceivingBank = (TextView) findViewById(R.id.tv_receiving_bank);
		mTvReceivingAccount = (TextView) findViewById(R.id.tv_receiving_account);
		mTvPayee = (TextView) findViewById(R.id.tv_payee);
		mTvMoney = (TextView) findViewById(R.id.tv_money);
		mTvPaymentBank = (TextView) findViewById(R.id.tv_payment_bank);
		mTvPaymentAccount = (TextView) findViewById(R.id.tv_payment_account);
		mTvPayer = (TextView) findViewById(R.id.tv_payer);
		mBtnGotoPay = (Button) findViewById(R.id.btn_go_to_pay);
		mBtnSaveInformation = (Button) findViewById(R.id.btn_save_pay_information);
	}

	/**
	 * 设置监听器
	 */
	private void setListener() {
		mBtnBack.setOnClickListener(this);
		mBtnGotoPay.setOnClickListener(this);
		mBtnSaveInformation.setOnClickListener(this);
	}

	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.btn_back:
			finish();
			break;
		case R.id.btn_go_to_pay:
			// TODO 去网银支付
			break;
		case R.id.btn_save_pay_information:
			// TODO 保存付款信息
			break;
		}
	}
}
